package com.spring.gop.proj.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.spring.gop.proj.dao.mapper.TicketMapper;
import com.spring.gop.proj.interfaces.TicketDao;
import com.spring.gop.proj.model.MyPoint;
import com.spring.gop.proj.model.User;

@Repository
public class TicketDaoImpl implements TicketDao {
	
	@Autowired TicketMapper ticketMapper;

	public void insertTicket(MyPoint myPoint) {
		ticketMapper.insertTicket(myPoint);
	}
	
	public void updateTicket(User user) {
		ticketMapper.updateTicket(user);
	}
	
	public List<MyPoint> selectAllMyPoint() {
		return ticketMapper.selectAllMyPoint();
	}
}
